<div class="row" style="height:100%;">
	<div class="col-lg-12" style="border-right:1px solid #e6e6e6;padding-right:0px;">
		<h1 class="site-h1" style="background-color:#FFFFFF;">
			IVR接入号码<#if ivrList??>（${ivrList?size}）</#if>
		</h1>
		<div class="row">
			<div class="col-lg-12">
				<div class="row" style="padding:5px;">
					<div class="col-lg-12">
						<table class="layui-table" lay-skin="line">
						  <colgroup>
								<col width="10%">
								<col width="10%">
								<col width="10%">
								<col width="20%">
								<col width="48%">
								<col width="1%">
								<col>
						  </colgroup>
						  <thead>
							<tr>
							  <th>分机号</th>
							  <th>录音</th>
							  <th>类型</th>
							  <th>创建时间</th>
							  <th>描述</th>
							  <th style="white-space:nowrap;" nowrap="nowrap">操作</th>
							</tr> 
						  </thead>
						  <tbody>
							<#if ivrList??>
							<#list ivrList as ivr>
							<tr>
							  <td>
							  		<a href="/admin/callcenter/ivr/design.html?id=${ivr.id!''}&hostid=${pbxHost.id!''}" data-toggle="load" data-target="#callCenterContent">
									${ivr.extention!''}
							  </td>
							  <td>
									<#if ivr.record>
								  		<i class="layui-icon" style="color:#19a55d;">&#xe618;</i>
								  	</#if>
							  </td>
							  <td>
									<#if ivr.extype?? && ivr.extype == "line">直线</#if>
									<#if ivr.extype?? && ivr.extype == "ivr">IVR</#if>
									<#if ivr.extype?? && ivr.extype == "skill">技能组</#if>
									<#if ivr.extype?? && ivr.extype == "conference">会议</#if>
									<#if ivr.extype?? && ivr.extype == "quene">队列</#if>
							  </td>
							  <td>
									${ivr.createtime?string('yyyy-MM-dd HH:mm:ss')}
							  </td>
							  <td>
									${ivr.description!''}
							  </td>
							  <td style="white-space:nowrap;" nowrap="nowrap">
							  		<a href="/admin/callcenter/ivr/edit.html?id=${ivr.id!''}&hostid=${pbxHost.id!''}" data-toggle="ajax" data-width="700" data-height="300" data-title="编辑分机信息">
							  			<i class="layui-icon">&#xe642;</i>
							  			编辑
							  		</a>
							  		<a href="/admin/callcenter/ivr/delete.html?id=${ivr.id!''}&hostid=${pbxHost.id!''}" data-callback="loadURL" data-target="#callCenterContent" style="margin-left:10px;" data-toggle="tip" data-callback="loadURL" data-target="#callCenterContent" data-title="删除IVR分机，会同时删除IVR菜单，请确认是否删除分机号？">
							  			<i class="layui-icon" style="color:red;">&#x1006;</i>
							  			删除
							  		</a>
							  </td>
							</tr>
							</#list>
							</#if>
						  </tbody>
						</table>
					</div> 	   
				</div>
			</div>	
		</div>
	</div>	
</div>
